import { BrowserWindow, globalShortcut } from 'electron'

export const shortcutReg = () => {
  // 切换全屏
  globalShortcut.register('Control+CmdOrCtrl+F', function () {
    let focusedWindow = BrowserWindow.getFocusedWindow()
    if (focusedWindow) {
      focusedWindow.setFullScreen(!focusedWindow.isFullScreen())
    }
  })
}
